<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //{sc=xxx} 这里检测汉语 sc=Han
        let web="sas唐玮发发45sdf。。入";
        console.log(web.match(/\p{sc=Han}+/gu));//['唐玮发发', '入']
    </script>
</body>
</html>